const inquirer = require("inquirer");
const config = require("../../config");
const downloadFun = require("./download");

const myaction = async (project, args) => {
  // code....
  console.log(project, args, "dd");
  const answer = await inquirer.prompt([
    {
      type: "list",
      name: "framwork",
      choices: config.framwork,
      message: "请选择你所使用的框架",
    },
  ]);
  console.log(answer, "answer");
  // 下载代码模板
  downloadFun(config.framworkUrl[answer.framwork], project);
};
module.exports = myaction;
